home *** CD-ROM | disk | FTP | other *** search
- Path: hades.polsl.gliwice.pl!piotras
- From: piotras@zeus.polsl.gliwice.pl (Piotr Auksztulewicz)
- Newsgroups: comp.unix.programmer,comp.lang.c++
- Subject: Re: [Q] Useing files as semaphores.
- Followup-To: comp.unix.programmer,comp.lang.c++
- Date: 28 Feb 1996 13:33:32 GMT
- Organization: Politechnika Slaska w Gliwicach
- Message-ID: <4h1ljc$99i@hades.polsl.gliwice.pl>
- References: <3131E6AC.5925@kihdata.kih.no>
- NNTP-Posting-Host: zeus.polsl.gliwice.pl
- X-Newsreader: TIN [version 1.2 PL2]
-
- Vegard Bakke (vegard3@kihdata.kih.no) wrote:
- > I'm programming C++ on HP-UX 9.05 useing the compiler CC.
- > I have a synchornice problem that would do best without any
- > deamons.
-
- > Is ofstream::open(FileName,ios::noreplace) an atomic action?
-
- Probably not. The only 100% sure way is to use System V semaphores
- or using open(filename, O_CREAT | O_EXCL, mode)
- The latter is guaranteed to be atomic in POSIX standard.
-
-